package chapter7classloader;

public class P75 {
    static class Parent{
         static int A = 1;
        static {
            A = 2;
        }
    }

    static class Sub extends Parent{
        static int B = A;
    }

    public static void main(String[] args) {
        //父类会在子类初始化之前初始化
        System.out.println(Sub.B);
    }

}
